package com.mililoan.common.bean;

import java.io.Serializable;

public class UploadFileResult implements Serializable {
	private static final long	serialVersionUID	= 8263747368681213402L;
	/**
	 * Variables Name: SUCCESS Description: 成功
	 */
	public static final String	SUCCESS				= "1";
	/**
	 * Variables Name: SUCCESS Description: 失败
	 */
	public static final String	FAIL				= "0";

	private String				resultCode;									// 1表示成功，非1表示其他
	private String				message;									// 描述
	private String				original;									// 原文件名称
	private long				size;										// 原文件大小，单位：B
	private String				title;										// 文件名称
	private String				type;										// 文件类型：如.jpg
	private String				url;										// 存储url
	private long				id;											// 数据库标识

	public UploadFileResult() {
		resultCode = "1";
		message = "上传成功";
	}

	public UploadFileResult(String resultCode, String message) {
		this.resultCode = resultCode;
		this.message = message;
	}

	public String getResultCode() {
		return resultCode;
	}

	public void setResultCode(String resultCode) {
		this.resultCode = resultCode;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getOriginal() {
		return original;
	}

	public void setOriginal(String original) {
		this.original = original;
	}

	public long getSize() {
		return size;
	}

	public void setSize(long size) {
		this.size = size;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public static String getSuccess() {
		return SUCCESS;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

}